<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">
	
	<h:head>
		<h:outputStylesheet library="css" name="basics.css" />
		<h:outputScript library="jquery/imob"  name="super.js"/>
	</h:head>

<center>
    <rich:toolbar height="26px">
        <h:outputLink value="#" id="ll">
            <rich:componentControl event="click" operation="show" target="lp">
                <a4j:param name="event" value="event" noEscape="true" />
                <rich:hashParam>
                    <a4j:param noEscape="true" name="top"
                        value="jQuery(#{rich:element('ll')}.parentNode).offset().top + jQuery(#{rich:element('ll')}.parentNode).height()" />
                    <a4j:param noEscape="true" name="left"
                        value="jQuery(#{rich:element('ll')}.parentNode).offset().left" />
                </rich:hashParam>
            </rich:componentControl>
        Login
        </h:outputLink>
    </rich:toolbar>
    
    <rich:popupPanel id="lp" autosized="true" modal="false"
        moveable="false" resizeable="false">
        
       	
        <rich:messages id="msgs" ajaxRendered="logon"/>
        
       	<h:form prependId="false" id="logon">
	        <p>	
		        <span>
		            <h:outputLabel value="Login" for="user"/>
	    	        <h:inputText id="user" required="true" immediate="true" 
	    	        			 requiredMessage="Favor informar User." />
		        </span>
		        <span>
	            	<h:outputLabel value="Password" for="senha"/>
	    	        <h:inputSecret id="senha" required="true" immediate="true" 
	    	        			 requiredMessage="Favor informar Senha." />
	            </span>
	            <span class="button">
		            <h:commandButton id="cancel" value="Cancel" styleClass="button" 
	            		type="reset" rendered="true" immediate="true" 
		            	onclick="#{rich:component('lp')}.hide(event); return false;" />
		            <h:commandButton value="Entrar" styleClass="button" rendered="true"  
	            		actionListener="#{loginBO.recebeDados}" />
	            </span>
	        </p>
        </h:form>
    </rich:popupPanel>
 	
	<p class="menu">
		<a href="/redeimob/" shape="rect" name="btnInicio">
			<h:graphicImage id="menuInicio" title="Volta ao Início" library="imagens/botoes" name="Inicio.png" usemap="true" />
		</a>
		<a href="javascript:clickedon=alert('Ainda em manutenção');" shape="rect" name="btnImovel" target="setframe">
			<h:graphicImage id="menuImovel" title="tela de imóveis" library="imagens/botoes" name="Imoveis.png" usemap="true" />
		</a>
		<a href="javascript:clickedon=alert('Ainda em manutenção');" shape="rect" name="btnQSomos" target="setframe">
			<h:graphicImage id="menuQSomos" title="Quem Somos" library="imagens/botoes" name="Quem_Somos.png" usemap="true" />
		</a>
		<a href="cadastro.xhtml" shape="rect" name="btnCadastro" target="setframe" >
			<h:graphicImage id="menuCadastro" title="Cadastrar Usuário" library="imagens/botoes" name="Cadastre_se.png" usemap="true" />
		</a>
		<a href="contato.xhtml" shape="rect" name="btnQSomos" target="setframe">
			<h:graphicImage id="menuFConosco" title="Fale Conosco" library="imagens/botoes" name="Fale_Conosco.png" usemap="true" />
		</a>
		<a href="javascript:clickedon=alert('Ainda em manutenção');" shape="rect" name="btnBAvancado" target="setframe">
			<h:graphicImage id="menuBAvancado" title="Busca Avançada" library="imagens/botoes" name="Busca_Avancada.png" usemap="true" />
		</a>
	</p>
	

	<p id="titulo" > <span id="txtTitulo"> </span> </p>
	
	<iframe id="include" name="setframe" scrolling="no" > </iframe>

	
</center>
	
</ui:composition>